<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>hr-m-s</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css" >
</head>
<body>
<table width="800" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th colspan="7" scope="col">职位信息列表</th>
  </tr>
  <tr>
    <td colspan="6">&nbsp;</td>
    <td width="50"><a href="position!initFormData">新增</a></td>
  </tr>
  <tr>
    <td width="50">编号</td>
    <td width="150">职位名称</td>
    <td width="150">上级部门</td>
    <td width="300">创建时间</td>
    <td width="50">启用</td>
    <td width="50">编辑</td>
    <td width="50">删除</td>
  </tr>
  <s:iterator value="positionVOList" var="list">
	  <tr>
	    <td><s:property value="positionID"/></td>
	    <td><s:property value="positionName"/></td>
	    <td><s:property value="department.departmentName"/></td>
	    <td><s:date format="yyyy-MM-dd HH:mm:ss" name="positionCreateDate"/></td>
	    <td>
	    	<s:if test="positionDisplayKey == 1">是</s:if>
	    	<s:else>否</s:else>
	    </td>
	    <td><a href='position!update?mode=getPositionPO&positionID=<s:property value="positionID"/>'>编辑</a></td>
	    <td><a href='position!delete?positionID=<s:property value="positionID"/>'>删除</a></td>
	  </tr>
  </s:iterator>
</table>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div id="showMessage" align="center"><s:property value="messageTips" /></div>
</body>
</html>
